package com.yc.jpyy.drivercarrel.dao;

import java.util.List;
import java.util.Map;
import org.springframework.dao.DataAccessException;
import com.yc.jpyy.base.dao.BaseDao;

public interface DriverCarRelDao extends BaseDao {

	int addDriverCarRelDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	String getMaxNember(Map<String, Object> paramsMap) throws DataAccessException;
	
	int UpdateDriverCarRelById(Map<String, Object> paramsMap) throws DataAccessException;

	int delforUpdateDriverCarRelDao(Map<String, Object> paramsMap) throws DataAccessException;

	int delforUpdateDriverCarStatusDao(Map<String, Object> paramsMap) throws DataAccessException;

	Map<String, Object> findDriverCarRelByIdDao(Map<String, Object> paramsMap) throws DataAccessException;

	// 分页查询
	List<Map<String, Object>> findDriverCarRelDao(Map<String, Object> paramsMap) throws DataAccessException;

	// 查询总数
	int findCountDriverCarRelDao(Map<String, Object> paramsMap) throws DataAccessException;
	
	//根据车牌号码判断该车辆绑定了几个司机
    int findCountDriverFromDriverCarRelDao(Map<String, Object> paramsMap)throws DataAccessException;

    int updateDriverCarStatusToDriverIDDao(Map<String, Object> paramsMap) throws DataAccessException;
    
    List<Map<String, Object>> findDriverCarRelListDao(Map<String, Object> paramsMap) throws DataAccessException;

    List<Map<String, Object>> selectDriverInfo(Map<String, Object> paramsMap) throws DataAccessException;

    int updateDriverCarReStatus(Map<String, Object> paramsMap) throws DataAccessException;

}
